#!/usr/bin/env node

const fs = require('fs');
const src = process.argv[2];
      
if(!fs.existsSync(src)){
  console.error(`${src} not exist`);
  process.exit(1);
}

if(!fs.statSync(src).isFile()){
  console.error(`${src} is not file`);
  process.exit(2);
}

fs.unlinkSync(src);

